﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Assignment2.Conditions
{
    class IsEqualCondition:Condition
    {
        private Integer value1, value2;

        /// <summary>
        /// Check if value1 = value2
        /// </summary>
        /// <param name="value1"></param>
        /// <param name="value2"></param>
        public IsEqualCondition(Integer value1, Integer value2)
        {
            this.value1 = value1;
            this.value2 = value2;
        }

        public bool test()
        {
            return value1==value2;
        }
    }
}
